From 8905b400ca4ac6e3dd8668156357683521469dc1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 13 Apr 2008 17:14:54 +0000 Subject: [PATCH] seek() does nothing here --- includes/SpecialProtectedpages.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/SpecialProtectedpages.php b/includes/SpecialProtectedpages.php index d898d4e4ac..445ad62c50 100644 --- a/includes/SpecialProtectedpages.php +++ b/includes/SpecialProtectedpages.php @@ -242,14 +242,12 @@ class ProtectedPagesPager extends AlphabeticPager { function getStartBody() { wfProfileIn( __METHOD__ ); # Do a link batch query - $this->mResult->seek( 0 ); $lb = new LinkBatch; - - while ( $row = $this->mResult->fetchObject() ) { + while( $row = $this->mResult->fetchObject() ) { $lb->add( $row->page_namespace, $row->page_title ); } - $lb->execute(); + wfProfileOut( __METHOD__ ); return ''; } -- 2.20.1